package com.hao.springcloud.service.impl;

import com.hao.springcloud.entities.Payment;
import com.hao.springcloud.dao.PaymentDao;
import org.springframework.stereotype.Service;
import com.hao.springcloud.service.PaymentService;

import javax.annotation.Resource;

/**
 * TODO
 *
 * @author 97472
 * @version 1.0
 * @date 2022/1/4 16:08
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Resource
    private PaymentDao paymentDao;

    @Override
    public int add(Payment payment) {
        return paymentDao.add(payment);
    }

    @Override
    public Payment getPaymentById(Long id) {
        return paymentDao.getPaymentById(id);
    }
}
